//
// Created by dave on 18-8-7.
//

#include <glog/logging.h>
#include <muduo/net/EventLoop.h>
#include "jtt808_emulator.h"

using namespace muduo;
using namespace muduo::net;

int main(int argc, char** argv) {
    google::InitGoogleLogging(argv[0]);
    FLAGS_stderrthreshold = 0;

    EventLoop loop;
    InetAddress serverAddr("192.168.3.4", 43333);
    Jtt808Emulator emulator(&loop, serverAddr, 4, 3000);
    emulator.connect();
    emulator.start();
    loop.loop();
    return 0;
}